package com.csnj.jar;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 * @author Sam.Lee
 * @version Created：Dec 2, 2011 2:17:03 PM
 */
public class Resource1 {

	public void readResourceFile() throws IOException {
		InputStream inputStream = this.getClass().getResourceAsStream(
				"/resource/res.txt");
		BufferedReader br = new BufferedReader(new InputStreamReader(
				inputStream));
		String str = "";
		while ((str = br.readLine()) != null) {
			System.out.println(str);
		}
	}

	public static void main(String[] args) throws IOException {
		Resource1 resource = new Resource1();
		resource.readResourceFile();
	}
}
